package gamegui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class ViewHelp extends JPanel {
	final Dimension dim = new Dimension (1100, 730);
	final JButton backToMainButton;
	final Dimension backSize = new Dimension(100, 100);
	final Point backLoc = new Point(15, 550);
	final ImageIcon mainImage;
	public ViewHelp() {
		setBackground(Color.GRAY);
		setForeground(Color.YELLOW);
		//setLayout(null);
		setPreferredSize(dim);
	
        mainImage = new ImageIcon("screen.jpg"); 
        JLabel label = new JLabel("", mainImage, JLabel.CENTER);
        label.setLocation(0, 0);
        label.setPreferredSize(dim);	
	
		JLabel lblNewLabel = new JLabel("There are 3 maps to play in");
		lblNewLabel.setForeground(Color.WHITE);
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblNewLabel.setBounds(61, 66, 193, 62);
		label.add(lblNewLabel);
		 
		JLabel lblWinAgainstComputer = new JLabel("Win against computer to unlock more interesting maps."
				+ "  \r\nThere are 3 difficulties. You can select the difficulty from Settings. ");
		lblWinAgainstComputer.setForeground(Color.WHITE);
		lblWinAgainstComputer.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblWinAgainstComputer.setBounds(43, 114, 326, 74);
		label.add(lblWinAgainstComputer);
		 
		JLabel lblNewLabel_1 = new JLabel("Instructions");
		lblNewLabel_1.setFont(new Font("Tempus Sans ITC", Font.ITALIC, 16));
		lblNewLabel_1.setBounds(114, 11, 95, 22);
		label.add(lblNewLabel_1);
		 
		backToMainButton = new JButton("Back");
		backToMainButton.setBounds(136, 204, 144, 34);
		backToMainButton.setLocation(backLoc);
		backToMainButton.setSize(backSize);
		label.add(backToMainButton);
		
		add(label);
	
	}
	//getters for buttons
	public JButton getBackToMainButton(){
		return backToMainButton;
	}	
}
		
